package com.yonyou.cyxdms.sysAuth.service.controller.manage.vehicleProduct;

import com.yonyou.cyx.framework.controller.base.BaseController;
import com.yonyou.cyxdms.sysAuth.service.service.vehicleProduct.VehicleMasterInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


/**
 * 车辆主数据
 *
 * @author dengqiang
 * @since 2019/7/26
 */
@RestController
@RequestMapping("/vehicleMasterInfo")
public class VehicleMasterInfoController extends BaseController {

    @Autowired
    private VehicleMasterInfoService vehiclemasterinfoservice;

    /**
     * 根据MODEL_CODE查询选PACKAGE_CODE---选装明细
     *
     * @author gy
     */

    @GetMapping(value = "/findByModelCode/{productId}/{modelCode}")
    @ResponseBody
    public List<Map<String,Object>> findByProductCode(@PathVariable("productId") Integer productId, @PathVariable("modelCode") String modelCode) {
        return  vehiclemasterinfoservice.findByModelCode(productId,modelCode);
    }


}
